package com.oren.Thread.study.day02;



/**
 * Created by IntelliJ IDEA.
 * User: wangshiwei
 * Date: 2018/8/6
 * Time: 14:45
 * describe:
 */
public class Thread1 extends Thread{

    private MyObject myObject;

    public Thread1(MyObject myObject){
        super();
        this.myObject=myObject;
    }

    @Override
    public void run(){
        super.run();
        myObject.method1();
    }

}
